//
//  DiggClient.m
//  iFlick1.4
//
//  Created by vhly on 10-9-11.
//  Copyright 2010 xhzhang. All rights reserved.
//

#import "DiggClient.h"

static DiggClient *diggClientInstance;

@implementation DiggClient


+ (DiggClient *)getInstance{
	if (diggClientInstance == nil) {
		diggClientInstance = [[DiggClient alloc] initWithAPIKey:@"1e3afa50de1d8acb1ce9bc4a05d25bc4" withSecret:@"6343f119743b747b8321ec5050eb7710"];
	}
	return diggClientInstance;
}

- (id)initWithAPIKey:(NSString *)key withSecret:(NSString *)sec{
	if (self = [super init]) {
		apiKey = [key copy];
		apiSecret = [sec copy];
	}
	return self;
}

- (void)dealloc{
	[apiKey release];
	[apiSecret release];
	[super dealloc];
}

@end
